﻿using ActiveDirectoryService.Library.Constants;
using LinqToLdap.Mapping;

namespace ActiveDirectoryService.Library.Entities
{
    [DirectorySchema("CN=Users,CN=Employees,DC=Northwind,DC=local", ObjectClass = "Group")]    
    public class ADGroup : DirectoryObjectBase
    {
        [DirectoryAttribute(ActiveDirectoryFields.Name, ReadOnly = true)]
        public string Name { get; set; }

        [DirectoryAttribute(ActiveDirectoryFields.Email, ReadOnly = true)]
        public string Email { get; set; }

        [DirectoryAttribute(ActiveDirectoryFields.Phone, ReadOnly = true)]
        public string Phone { get; set; }

        [DirectoryAttribute(ActiveDirectoryFields.AccountType, ReadOnly = true)]
        public int AccountType { get; set; }

        [DirectoryAttribute(ActiveDirectoryFields.DistinguishedName, ReadOnly = true)]
        public string DistinguishedName { get; set; }        
    }
}